package com.njit.mailm.core.dao;

import com.njit.mailm.core.bean.Draft;
import com.njit.mailm.core.bean.Email;
import com.njit.mailm.core.bean.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2016/4/21.
 */
public interface DraftDao {
    Draft getDraftById(String id);

    void updateDraft(Draft draft);

    void insertDraft(Draft draft);

    int getDraftTotal(String id);

    List<Draft> pageListDraft(@Param("page") Page p, @Param("email") Email email);
}
